<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Eco model DLL template</title>
    <link type="text/css" rel="stylesheet" href="C:\Program Files\CapableObjects\ECO\4.0\\WizardFiles\style.css" />
</head>
<body>
    <h1>
        ReadMe for Eco model DLL
    </h1>
    <img align="right" src="C:\Program Files\CapableObjects\ECO\4.0\\WizardFiles\logo.png" alt="CapableLogo"/>
    <h3>
        General
    </h3>
    <p>
        This project contains an ECO model and generated source code. Initially the model
        contains a single class with a single string attribute.</p>
    <h3>
        Editing the model</h3>
    <p>
        The model is edited in a separate application, EcoModeler. EcoModeler is launched
        by double-clicking on the .mmcseco file in the solution.</p>
    <p>
        The actual use of the EcoModeler is described in C:\Program Files\CapableObjects\ECO\4.0\doc\pdf\EcoModeler.pdf.</p>
    <p>
        When code is generated with Tools|Generate Eco Model in EcoModeler, the project
        file is automatically updated with the files added/removed.
    </p>
    <h3>
        Template contents</h3>
    <p>
        The template contains the following files:
    </p>
    <table>
        <tr>
            <td>
                ReadMe.html
            </td>
            <td>
                This file.
            </td>
        </tr>
        <tr>
            <td>
                Class_1.cs
            </td>
            <td>
                The generated code for <span class="code">Class_1</span>. One such file is created for each class in
                the model. The generated class has properties
                corresponding to the attributes and association ends in the model.
            </td>
        </tr>
        <tr>
            <td style="height: 40px">
                RunTimePackage.cs
            </td>
            <td style="height: 40px">
                Contains the class <span class="code">RunTimePackage</span>, which is used by ECO to know which classes are part of an Eco Package.
            </td>
        </tr>
        <tr>
            <td style="height: 40px">
                RunTimePackage.mmcseco
            </td>
            <td style="height: 40px">
                Contains the actual model in EcoModeler format. The name of this file does not matter, so if you wish you can rename it if you rename the package.
            </td>h
        </tr>
        <tr>
            <td>
                ModelInterfaces.cs
            </td>
            <td>
                Contains the declarations of all modeled interfaces.
            </td>
        </tr>
        <tr>
            <td>
                ModelMergeData.ecoxml
            </td>
            <td>
                Contains information used by EcoModeler when merging the changes into the existing classes after the model has been changed. Do
                not remove or rename this file.
            </td>
        </tr>
        <tr>
            <td>
                licenses.licx
            </td>
            <td>
                licx file for including the ECO runtime license.
            </td>
        </tr>
    </table>
    <h3>
        Using EcoModeler separately</h3>
    <p>
        It is also possible to start EcoModeler in other ways, e.g. from the start menu, or by double-clicking on a .mmcseco file in the windows explorer. It this case it will not be integrated into the Visual Studio IDE, and the project
        file will not be automatically updated. You can start the IDE integration manually by selecting "Tools"|"Start EcoModeler Integration" in the VS menu
    </p>
        <h3>
        Renaming the package</h3>
        <p>
        It is best to name the package correctly in the wizard when creating it, but if you need to rename it later
        you need to perform the following steps:
	</p>
    <ol>
	<li>You may rename the .mmcseco-file, but it is not required. EcoModeler should be closed when renaming this file.</li>
        <li>Change the Package name in EcoModeler Options|Project options|ECO</li>
        <li>Rename the file RunTimePackage.cs in the project. If you don't do this,
        the file will be removed from the project, and a new one with the new package name created</li>
        <li>Tools|Generate Eco Model in EcoModeler.</li>
        <li>Recompile the project (F6)</li>
        <li>Open the EcoSpace designer in the EcoSpace project, and use the package selector tool to remove the old
        package name, and add the new one.</li>
    </ol>
</body>
</html>
